package cmd

import (
	"fmt"
	"github.com/spf13/cobra"
	"github.com/zeromicro/go-zero/core/color"
)

func newVersionCommand() *cobra.Command {
	return &cobra.Command{
		Use:     "version",
		Short:   "version info",
		Long:    "View current version!",
		Aliases: []string{"V", "v"},
		Run: func(cmd *cobra.Command, args []string) {
			fmt.Println(color.WithColor("1.0.0", color.FgGreen))
		},
	}
}
